﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using WCFTestClientConsole.ServiceReference1;


namespace WCFTestClientConsole
{
    class Program
    {   
        static void Main(string[] args)
        {
            RemoteBookingSystemClient cli = new RemoteBookingSystemClient();
            DateTime date = DateTime.Now;
            //cli.NewCustomer("Allan", "Lie", "Nørgårdsvej", "24", 9260, "31756085", "lie@live.dk", date);
            //cli.NewEmployee("Thomas", "Bolander", "Prinsensgade", "100", 9000, "35251627", "bolander@tis.dk", "1234", "TB");
                   
            //cli.DeleteEmployee(3);
            List<Customer> cus = new List<Customer>();
            cus = cli.AllCustomers().ToList();
            foreach (Customer cus4 in cus)
            {
                Console.WriteLine(cus4.Fname + " " + cus4.Id);
            }
           
            
            
            Customer cus2 = new Customer();
            cus2 = cli.GetOneCustomer(2);
            Console.WriteLine(cus2.Fname + " " + cus2.Lname + " " + cus2.Id);
           

           
             

            
          //  Console.WriteLine(cli.State);
            //Console.WriteLine("Success");
            //Console.WriteLine(cli.printcus(1));
            

        }
    }
}

